/*
 * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
 *
 * https://www.mall4j.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */
package com.dlc.shop.delivery.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dlc.shop.delivery.common.model.ChinaDeliveryOrder;
import com.dlc.shop.delivery.common.model.DeliveryOrder;
import com.dlc.shop.delivery.common.param.DeliveryOrderItemParam;

import java.util.List;


/**
 * 国内物流发货-订单物流
 * @author liyong
 */
public interface ChinaDeliveryOrderService extends IService<ChinaDeliveryOrder> {

    /**
     * 保存物流信息
     *
     * @param deliveryOrderParam 保存物流信息参数
     * @param shopId 店铺id
     */
    void saveDeliveriesInfo(DeliveryOrderItemParam deliveryOrderParam, Long shopId);

    /**
     * 获取物流信息
     *
     * @param orderNumber 订单号
     * @return 物流信息
     */
    List<ChinaDeliveryOrder> listDetailDelivery(String orderNumber);

    /**
     * 更新物流信息
     *
     * @param deliveryOrders 更新物流信息参数
     */
    void updateOrderDeliveries(List<DeliveryOrder> deliveryOrders);

     /**
     * 获取物流信息
     *
     * @param orderDeliveryId 订单物流包裹id
     * @return 物流信息
     */
     ChinaDeliveryOrder deliveryOrderItemInfo(Long orderDeliveryId);

    /**
     * 获取物流信息
     *
     * @param orderNumber 订单号
     * @return 物流信息
     */
    List<ChinaDeliveryOrder> getAndDeliveryItemInfo(String orderNumber);
}
